//
//  GoodsTitleCell.m
//  TerritoryShopkeeper
//
//  Created by xiaowu on 2017/12/12.
//  Copyright © 2017年 ZDQK. All rights reserved.
//

#import "GoodsTitleCell.h"

@implementation GoodsTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.titleLabel.font = TextPingFangMediumFontSize(16);
    self.titleLabel.textColor = [UIColor blackTextColor];
    
    self.label.font = TextPingFangFontSize(12);
    self.label.textColor = [UIColor whiteColor];
    self.label.backgroundColor = [UIColor redF2color];
    self.label.layer.cornerRadius = 2;
    self.label.clipsToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setValueForTitleCell:(NSString *)title andLabel:(NSString *)label {
    self.titleLabel.text = title;
    self.label.text = label;
    self.label.hidden = (label.length == 0);
}

@end
